/********************************************************************************
* File Name:	dlgorder.h
* Description:	第十一章实例训练
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1
* E_mail: openlinux2011@gmail.com
********************************************************************************/
#ifndef DLGORDER_H
#define DLGORDER_H

#include <QDialog>
#include <QSqlTableModel>
#include <QVector>

namespace Ui {
    class DlgOrder;
}

class DlgOrder : public QDialog
{
    Q_OBJECT

public:
    explicit DlgOrder(QWidget *parent = 0);
    ~DlgOrder();

private slots:
    void on_pbFresh_clicked();

    void on_pbAdd_clicked();

    void on_pbSave_clicked();

    void on_pbCancel_Order_clicked();

    //显示该类型的所有信息
    void type(int index);

private:
    Ui::DlgOrder *ui;

    QSqlTableModel *model;

    //定义容器
    QVector<int> order;
};

#endif // DLGORDER_H
